/*
 * @Author: wz
 * @Date: 2020-11-27 10:41:28
 * @LastEditors: wz
 * @LastEditTime: 2021-01-28 16:20:48
 * @Description: uac 接口
 */

import { get, post } from '../config/fetch'

// 获取GrantCode
export const getGrantCode = params => post('/uac/iuauthen/passwordSignOnGrant', params)

// 退出登录
export const apiLoginOut = params => post('/uac/user/signout', params)

// 刷新最新令牌
export const refreshToken = params => get('/common/userInfo/refreshToken', params)

// 角色列表查询
export const apiUserRoleInfo = params => post('/uac/userRoleInfo/query', params)

// 注册-发送验证码
export const apiSendValidCode = params => get('/uac/registration/sendSMSForRegister', params)

// 提交注册
export const apiValidMSG = params => post('/uac/registration/validateSMSToRegister', params)

// 忘记密码-发送验证码
export const apiValidResetPswMSG = params => get('/uac/iupassword/exSendSMSForResetPassword', params)

// 忘记密码
export const apiResetPassword = params => post('/uac/iupassword/exValidateSMSToResetPassword', params)

// 上传图片
export const uploadPublicImage = params => post('/picture/uploadPublicImage', params)

// 省市区数据
export const queryProvinceList = params => post('/commondata/position/queryProvinceList', params)
